Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U

Input "Q=", Q

Input "U=", U

Input "S=", S

Input "N=", N

While U < S

U*Q→U

N+1→N

End

Disp "N :", N

Disp "U : ", U